package com.isoft.farm.dao;

import com.isoft.farm.entity.Node;
import com.isoft.farm.entity.SysDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysDeptDao {
    @Select("select * from sys_depts where id=#{deptId}")
    SysDept findById (Integer deptId);

    List<Node> findZtreeDeptNodes();
}
